using System;
using Wx.Sdk.App.Base;
using Wx.Sdk.App.Src;
using Wx.Sdk.Cache;

namespace Wx.Sdk.App;

public class WxApp
{
    internal AppOption appOption;
    internal IHttpClientFactory httpClientFactory;
    public LoginService loginService;
    // 构造
    public WxApp(AppOption options, IHttpClientFactory httpClientFactory)
    {
        appOption = options;
        this.httpClientFactory = httpClientFactory;
    }
    public LoginService AppLogin
    {
        get
        {
            if (loginService == null)
            {
                this.loginService = new LoginService(this);
            }
            return loginService;
        }
    }
}
